package datastructure;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;

public class document {
	File file;
	public ArrayList<sentence> stc = new ArrayList<sentence>();
	public document(File a)
	{
		file = a;
	}	
	public void addsen() throws IOException
	{
		BufferedReader reader = new BufferedReader(new FileReader(file));
		String line = "";
		while ((line = reader.readLine()) != null)
		{
			String [] temp = line.split("。");
			for(int i = 0; i < temp.length; i++)
				stc.add(new sentence(temp[i]));
		}
		reader.close();
	}
	
}
